package com.example.hello.mapper;

import com.example.hello.bean.User1;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface User1Mapper {
    @Insert("insert into user(username,password) values(#{username},#{password});")
     int insert(@Param("username") String username,@Param("password") String password);
    @Select("select * from user where id=#{id};")
    User1 select(@Param("id") int id);
}
